import requests


headers = {
    "Accept": "application/json, text/javascript, */*; q=0.01",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,ar;q=0.7",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    "Origin": "https://exaccount2.eastmoney.com",
    "Pragma": "no-cache",
    "Referer": "https://exaccount2.eastmoney.com/home/Login4?rc=550656496",
    "RequestVerificationToken": "di6k8wpeJdmYifzMGkCvdG3UPNkyzkCjhgP2EkhmRQyD8ugFfQcwdNLTfFMafRwvbBfZ8RqxhPpCpq88zL196Ext37E1",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "same-origin",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0",
    "X-Requested-With": "XMLHttpRequest",
    "deviceType": "Web",
    "domainName": "passport2.eastmoney.com",
    "productType": "UserPassport",
    "sec-ch-ua": "\"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"138\", \"Microsoft Edge\";v=\"138\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\""
}
cookies = {
    "qgqp_b_id": "af4a3d01781b5555726d9a17e425be7a",
    "st_nvi": "2xfzbOLOA9PSvGMSOq0F6856a",
    "nid": "04d51e4d408a5c3c863d17873895a224",
    "nid_create_time": "1754271580335",
    "gvi": "a5R5YyyjtEfOf8i6-mdDl6c36",
    "gvi_create_time": "1754271580335",
    "nid_id": "474357494",
    "st_si": "00585701374988",
    "st_asi": "delete",
    "RequestData": "%7b%22agentPageUrl%22%3a%22https%3a%2f%2fpassport2.eastmoney.com%2fpub%2fLoginAgent%22%2c%22redirectUrl%22%3a%22https%3a%2f%2fwww.eastmoney.com%2f%22%2c%22callBack%22%3a%22LoginCallBack%22%2c%22redirectFunc%22%3a%22PageRedirect%22%2c%22data%22%3a%7b%22domainName%22%3a%22passport2.eastmoney.com%22%2c%22deviceType%22%3a%22Web%22%2c%22productType%22%3a%22UserPassport%22%2c%22version%22%3a%220.0.1%22%7d%2c%22type%22%3anull%7d",
    "__RequestVerificationToken": "VlAwTJmEJi3CGWKf2Xu6Seo8rdBGeQQk4OOuLeOa5Ka1CpY5Q_gKlNgtibLB7ejZ_RsALdMJxJI6iVQ3ks-2SzPl22M1",
    "p_origin": "https%3A%2F%2Fpassport2.eastmoney.com",
    "_qct": "e9f9763437564ed08813c7e52610a49f",
    "_qcu": "183.17.229.1911a71d9ff",
    "st_pvi": "67053581251557",
    "st_sp": "2025-08-04%2009%3A39%3A40",
    "st_inirUrl": "https%3A%2F%2Fpassport2.eastmoney.com%2F",
    "st_sn": "2",
    "st_psi": "20250804152437254-0-6714377138"
}
url = "https://exaccount2.eastmoney.com/JsonAPI/Login3"
data = {
    "username": "18320975328",
    "password": "ODw2VWvhrbXPyGG/VULb4TkCxpIrXsXsLFe74yO/XsVmlvlcD56PXLbPPrvEfl844o3VwOD5Izx13pSonLP30CmZ85rdDPT2JS3nDRJyweW71H5qHCV+LwLpPP9lFNZ7a+d+76YqrH6/NUNAwr17iLRD0XA/OYZGrZ3JMKEP6Ec=",
    "captconetxt": "ad8c6bd04b0f7db100e3aa36358880fa",
    "captvalidate": "d8f9ff459541a95b74db85f1981b6b55"
}
response = requests.post(url, headers=headers, cookies=cookies, data=data)

print(response.text)
print(response)